{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "from tornado import web\n",
    "import tornado\n",
    "\n",
    "\n",
    "class MainHandler(web.RequestHandler):\n",
    "    async def get(self, *args, **kwargs):\n",
    "\n",
    "        self.write('hello world3')\n",
    "\n",
    "\n",
    "if __name__ == '__main__':\n",
    "    app = web.Application([\n",
    "        ('/', MainHandler)\n",
    "    ], debug=True, autoreload=True)\n",
    "    app.listen(8888)\n",
    "    tornado.ioloop.IOLoop.current().start()"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
